package com.zhongmai.yzfgrabanorder.utils;


/**
 * 项目名称：YZFGrabAnOrder
 * 类描述：
 * 创建人：Administrator
 * 创建时间：2020/9/23 14:39
 * 修改人：Administrator
 * 修改时间：2020/9/23 14:39
 * 修改备注：
 */
public class Constants {
    //判定长连接中来自服务器的消息
    public static final int MSG_FROM_SERVER = 046;
    //处理中订单号
    public static String handle_order_id;

    public static String Url = "";//地址
    public static String ip = "";//地址
    public static String token = "";//用户token
    public static String user = "";//用户
    public static String sp_File = "YZF_grabAnOrder_SP";//本地保存ip地址SP文件
    public static String userID = "user_id";//本地保存用户ID字段
    public static String userLogin = "user_login";//本地保存登录信息
    public static String urlSPKey = "url_key";//本地保存ip地址字段
    public static String userToken = "user_token";//本地保存ip地址字段
    public static String encrypt_key = "LdgOQEGIXyU56scp9u5kr3I1";//加密Key
    public static String encrypt_iv = "88323502";//加密iv
    //接口地址
    public static String loginAddress = "/login/connect.jhtml";
    public static String requestOrder = "/grabOrder/grabOrder.jhtml";//首页上线接口
    public static String findOrder = "/grabOrder/findHandingOrder.jhtml";//查单接口
    public static String successOrder = "/grabOrder/updateState.jhtml";//订单成功反馈接口
    public static String backOrder = "/grabOrder/rollback.jhtml";//订单退回接口
    public static String appealALL = "/trade/findTradeList.jhtml";//全部订单接口
    public static String successTradeList = "/trade/findSuccessTradeList.jhtml";//历史订单接口
    public static String loginOut = "/login/loginout.jhtml";//在线状态查询接口
    public static String orderInfo = "/trade/findTradeDetails.jhtml";//订单信息接口
    public static String updateState = "/trade/updateState.jhtml";//订单处理接口

    //是否在线
    public static boolean online = false;
    public static boolean manual_link = false;
    public static boolean waitOrder=false;//订单页等待订单中
    public static boolean refresh = false;//在轮训刷新状态
    //请求返回结果码
    public static String successCode = "100000";
    public static String errorCode = "200000";
    public static String loginExpiredCode = "204001";//登录过期
    public static String loginUserErrorCode = "204003";//账户不存在
    public static String loginPwdErrorCode = "201018";//登录密码错误

    //订单状态码
    public static String order_success="0";
    public static String page_size="6";
    public static int refreshTime=1000*15;
}
